<?
/*
 *   Pmail easy way to send emails
 *   Copyright (C) 2009  Felipe Theodoro Gonçalves (www.ftgoncalves.com)
 *
 *   This program is free software: you can redistribute it and/or modify
 *	 it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
?>
<div id="page">
	<h2><?= __d('pmail', 'welcome'); ?> PMail</h2>
	<p class="bold">
		<?php
			if(!$init_config){
				echo __d('pmail', 'It is necessary to perform the initial settings.', true) . ' ' . $html->link(__d('pmail', 'Click here', true), array('plugin' => 'pmail', 'controller' => 'configs', 'action' => 'config')) . ' ' . __d('pmail', 'to perform', true);
			}
		?>
	</p>
	<!-- Verifier -->
	<?= ($init_config) ? '<code class="ok">' . __d('pmail', 'Initial settings', true) . '</code>' : '<code class="erro">' . __d('pmail', 'Initial settings', true) . '</code>'; ?>
	<?= ($groups) ? '<code class="ok">' . __d('pmail', 'Set up a group', true) . '</code>' : '<code class="erro">' . __d('pmail', 'Set up a group', true) . '</code>'; ?>
	<?= (function_exists('mail')) ? '<code class="ok">' . __d('pmail', 'mail enable', true) . '</code>' : '<code class="erro">' . __d('pmail', 'mail enable', true) . '</code>'; ?>
	<code class="info"><?= __d('pmail', 'Last packet sent', true); ?>: <strong><?= $report['Report']['identifier'] ?></strong>, <?= __d('pmail', 'envoy'); ?> <?= $report['Report']['sucesso'] ?>, <?= __d('pmail', 'error'); ?> <?= $report['Report']['erro'] ?>. <?= $html->link(__d('pmail', 'See the Report', true), array('plugin' => 'pmail', 'controller' => 'mails', 'action' => 'report')) ?></code>
	<code class="info"><?= __d('pmail', 'Last IP'); ?>: <strong><?= $ip ?></strong></code>
</div>
<div id="sidebar">
	<h4><?= __d('pmail', 'About'); ?></h4>
	<p><?= __d('pmail', 'This is a plugin designed to work with the CakePHP framework, all your code is being OpenSource seed the credits necessary to its developer. Read the'); ?> <?= $html->link(__d('pmail', 'license', true), 'http://www.opensource.org/licenses/gpl-3.0.html') ?>.</p>
	<h4>Wiki</h4>
	<ul>
		<li><?= $html->link('User Guide','http://code.google.com/p/pmailgroup/') ?></li>
		<li><?= $html->link('Open Source','http://www.opensource.org/') ?></li>
		<li><?= $html->link('Config Server Mail', 'http://www.qmail.org/') ?></li>
		<li><?= $html->link('Understand SMTP','http://pt.wikipedia.org/wiki/Smtp') ?></li>
	</ul>
	<?= $this->renderElement('recommended/links') ?>
</div>
<div class="clear"></div>